package org.lq.shopping.service.impl;

import java.util.List;

import org.lq.shopping.dao.ShopPmethodDao;
import org.lq.shopping.dao.impl.ShopPmethodDaoimpl;
import org.lq.shopping.entity.ShopPmethod;
import org.lq.shopping.service.ShopPmethodService;

public class ShopPmethodServiceImpl implements ShopPmethodService{
	ShopPmethodDao dao = new ShopPmethodDaoimpl();
	@Override
	public boolean addPmethod(ShopPmethod sp) {
		
		return dao.add(sp)>0;
	}

	@Override
	public boolean deletePmethod(int id) {
		return dao.delete(id)>0;
	}

	@Override
	public List<ShopPmethod> findAll() {
		return dao.findAll();
	}

}
